import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class Menu here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Menu extends World
{
    private GreenfootSound musica=new GreenfootSound("Brand X Music Spawn.mp3");
    /**
     * Constructor for objects of class Menu.
     * 
     */
    public Menu()
    {    
        // Create a new world with 600x400 cells with a cell size of 1x1 pixels.
        super(800, 600, 1);

        prepare();
    }

    public void act(){
     musica.playLoop();
     
    }

    /**
     * Prepare the world for the start of the program. That is: create the initial
     * objects and add them to the world.
     */
    private void prepare()
    {
        Boton boton = new Boton(1);
        addObject(boton, 91, 533);
        Boton boton2 = new Boton(2);
        addObject(boton2, 306, 533);
        
       
    }
    
    public void stopMusic(){
      musica.stop();
    }
}
